$("html").css('height',document.documentElement.clientHeight)
function ech1(res,dom){
	var myChart1 = echarts.init(document.getElementById(dom));
	option1 = {
		tooltip: {
			trigger: 'axis',
			textStyle: {
				align:'center'
			}				
		},
		color:['#1bbbff','#f8eb0e'],
		legend: {
			orient: 'horizontal',
			data:res.names,
			icon:'circle',
			itemWidth:12,
			itemHeight:12,
			textStyle: {
				color: '#69b8ff',
				fontSize: 12,
				padding: [0, 0, 0, 5]
			},
			top: '5%',
			itemGap: 50							
		},
		xAxis: {
			type: 'category',
			boundaryGap: false,
			data:res.datax,
			axisLabel: {
				interval:0,								
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:12
				}
			},
			axisLine:{
				lineStyle:{
					color:'#222856'
				}
			}
		},
		yAxis: [{
			type: 'value',
			name:'总风量m³',
			minInterval:1000,
			nameTextStyle:{
				color:'#657ca8',
				fontSize:14
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#2174c0',
				},
		　　},
			axisLine:{
				lineStyle:{
					color:'#222856',
					fontSize:14,
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			},
			axisLabel: {							
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:14
				},
				formatter: function (value) {
					return value+res.cell;	
				}
			},
		},{
			type: 'value',
			name:'总功率kwh',
			minInterval:1,
			nameTextStyle:{
				color:'#657ca8',
				fontSize:14
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#2174c0',
				},
		　　},
			axisLine:{
				lineStyle:{
					color:'#222856',
					fontSize:14,
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			},
			axisLabel: {							
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:14
				},
				formatter: function (value) {
					return '0'+value+res.cell;	
				}
			},
		}],
		textStyle:{
			color:'#657ca8',
			fontSize:14
		},
		grid : {
			top:'25%',
			left : '3%',   //组件离容器左侧的距离
			right : '6%',
			bottom : '0%',
			containLabel : true     //grid 区域是否包含坐标轴的刻度标签
		},			
		series: [{
			name:res.names[0]['name'],
			data: res.data1,
			yAxisIndex: 1,
			type: 'line',
			smooth:res.smooth,
			lineStyle:{
				color: "#f8eb0e" ,
			},
			areaStyle: {
				// color:'rgba(0,255,252,0.4)',
				color: new echarts.graphic.LinearGradient(
					0, 0, 0, 1,
					[{
							offset: 0,
							color: 'rgba(248,235,14,0.6)'
						}, //柱图渐变色
						{
							offset: 1,
							color: 'rgba(248,235,14,0)'
						}, //柱图渐变色
					]
				)
			},
			symbol: 'none'			
		},
		{
			name:res.names[1]['name'],
			data: res.data2,
			type: 'line',			
			smooth:res.smooth,
			lineStyle:{
				color: "#1bbbff" ,
			},
			areaStyle: {
				// color:'rgba(0,229,59,0.4)',
				color: new echarts.graphic.LinearGradient(
					0, 0, 0, 1,
					[{
							offset: 0,
							color: 'rgba(86,169,253,0.6)'
						}, //柱图渐变色
						{
							offset: 1,
							color: 'rgba(86,169,253,0)'
						}, //柱图渐变色
					]
				)
			},			
			symbol: 'none'
		}]
	};
	myChart1.setOption(option1);
}

function ech2(res,dom){
	var myChart2 = echarts.init(document.getElementById(dom));
	option2 = {
		tooltip: {
			trigger: 'axis',
			textStyle: {
				align:'center'
			}				
		},
		legend: {
			orient: 'horizontal',
			data:res.names,
			icon:'circle',
			itemWidth:12,
			itemHeight:12,
			textStyle: {
				color: '#69b8ff',
				fontSize: 12,
				padding: [0, 0, 0, 5]
			},
			top: '5%',
			itemGap: 50							
		},
		xAxis: {
			type: 'category',
			boundaryGap: false,
			data:res.datax,
			axisLabel: {
				interval:0,								
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:12
				}
			},
			axisLine:{
				lineStyle:{
					color:'#222856'
				}
			}
		},
		yAxis: [{
			type: 'value',
			name:'℃',
			minInterval:1,
			nameTextStyle:{
				color:'#657ca8',
				fontSize:14
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#2174c0',
				},
		　　},
			axisLine:{
				lineStyle:{
					color:'#222856',
					fontSize:14,
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			},
			axisLabel: {							
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:14
				},
				formatter: function (value) {
					if(value>0){
						return '0'+value+res.cell;	
					}else{
						return value+res.cell;	
					}
					
				}
			},
		},{
			type: 'value',
			name:'%',
			minInterval:30,
			nameTextStyle:{
				color:'#657ca8',
				fontSize:14
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#2174c0',
				},
		　　},
			axisLine:{				
				lineStyle:{
					color:'#222856',
					fontSize:14,
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			},
			axisLabel: {							
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:14
				},
				formatter: function (value) {
					return value+res.cell;	
				}
			},
		}],
		textStyle:{
			color:'#657ca8',
			fontSize:14
		},
		grid : {
			top:'25%',
			left : '3%',   //组件离容器左侧的距离
			right : '6%',
			bottom : '0%',
			containLabel : true     //grid 区域是否包含坐标轴的刻度标签
		},			
		series: [{
			name:res.names[0]['name'],
			data: res.data1,
			yAxisIndex: 0,
			type: 'line',			
			smooth:res.smooth,
			lineStyle:{
				color: "#1bbbff" ,
			},			
			symbol: 'circle',
			symbolSize: 6,
			itemStyle:{
				 normal: {
					color: "#1bbbff",
					borderColor:'#fff'
				}
			}			
		},{
			name:res.names[1]['name'],
			data: res.data2,
			yAxisIndex: 1,
			type: 'line',			
			smooth:res.smooth,
			lineStyle:{
				color: "#f8eb0e" ,
			},
			symbol: 'circle',
			symbolSize: 6,
			itemStyle:{
				 normal: {
					color: "#f8eb0e",
					borderColor:'#fff'
				}
			}
		}
		]
	};
	myChart2.setOption(option2);
}

function ech3(res,dom){
	var myChart3 = echarts.init(document.getElementById(dom));
	option3 = {
		tooltip: {
			trigger: 'axis',
			textStyle: {
				align:'center'
			}				
		},
		legend: {
			orient: 'horizontal',
			data:res.names,
			icon:'circle',
			itemWidth:12,
			itemHeight:12,
			textStyle: {
				color: '#69b8ff',
				fontSize: 12,
				padding: [0, 0, 0, 5]
			},
			top: '5%',
			itemGap: 50,
			itemWidth:12,
			itemHeight:12,
		},
		xAxis: {
			type: 'category',
			boundaryGap: false,
			data:res.datax,
			axisLabel: {
				interval:1,								
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:12
				}
			},
			axisLine:{
				lineStyle:{
					color:'#222856'
				}
			}
		},
		yAxis: [{
			type: 'value',
			name:'℃',
			min:15,
			nameTextStyle:{
				color:'#657ca8',
				fontSize:14
			},
			splitLine: {
				show: true,
				lineStyle: {
					color: '#222856',
				},
		　　},
			axisLine:{
				lineStyle:{
					color:'#222856',
					fontSize:14,
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			},
			axisLabel: {							
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:14
				},
				formatter: function (value) {
					return value+res.cell;						
				}
			},
		}],
		textStyle:{
			color:'#657ca8',
			fontSize:14
		},
		grid : {
			top:'25%',
			left : '3%',   //组件离容器左侧的距离
			right : '6%',
			bottom : '0%',
			containLabel : true     //grid 区域是否包含坐标轴的刻度标签
		},			
		series: [{
			name:res.names[0]['name'],
			data: res.data1,
			type: 'scatter',			
			smooth:res.smooth,					
			symbol: 'circle',
			symbolSize: 8,
			itemStyle:{
				 normal: {
					color: "#00fb94",
					borderColor:'#fff'
				}
			}			
		},{
			name:res.names[1]['name'],
			data: res.data2,
			type: 'scatter',			
			smooth:res.smooth,
			symbol: 'circle',
			symbolSize: 8,
			itemStyle:{
				 normal: {
					color: "#ff621d",
					borderColor:'#fff'
				}
			}
		}
		]
	};
	myChart3.setOption(option3);
}


function ech4(res,dom){
	var myChart4 = echarts.init(document.getElementById(dom));
	option4 = {
		tooltip: {
			trigger: 'axis',
			textStyle: {
				align:'center'
			}				
		},
		color:['#1bbbff','#f8eb0e'],
		legend: {
			orient: 'horizontal',
			data:res.names,
			icon:'circle',
			itemWidth:12,
			itemHeight:12,
			textStyle: {
				color: '#69b8ff',
				fontSize: 12,
				padding: [0, 0, 0, 5]
			},
			top: '5%',
			itemGap: 50							
		},
		xAxis: {
			type: 'category',
			boundaryGap: false,
			data:res.datax,
			axisLabel: {
				interval:0,								
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:12
				}
			},
			axisLine:{
				lineStyle:{
					color:'#222856'
				}
			}
		},
		yAxis: [{
			type: 'value',
			name:'PPm',
			minInterval:100,
			nameTextStyle:{
				color:'#657ca8',
				fontSize:14
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#2174c0',
				},
		　　},
			axisLine:{
				lineStyle:{
					color:'#222856',
					fontSize:14,
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			},
			axisLabel: {							
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:14
				},
				formatter: function (value) {
					return value+res.cell;	
				}
			},
		},{
			type: 'value',
			name:'ug/m³',
			minInterval:10,
			nameTextStyle:{
				color:'#657ca8',
				fontSize:14
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#2174c0',
				},
		　　},
			axisLine:{
				lineStyle:{
					color:'#222856',
					fontSize:14,
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			},
			axisLabel: {							
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:14
				},
				formatter: function (value) {
					return value+res.cell;	
				}
			},
		}],
		textStyle:{
			color:'#657ca8',
			fontSize:14
		},
		grid : {
			top:'25%',
			left : '3%',   //组件离容器左侧的距离
			right : '6%',
			bottom : '0%',
			containLabel : true     //grid 区域是否包含坐标轴的刻度标签
		},			
		series: [{
			name:res.names[0]['name'],
			data: res.data1,
			yAxisIndex: 0,
			type: 'line',
			smooth:res.smooth,			
			lineStyle:{
				color: "#1bbbff" ,
			},
			areaStyle: {
				// color:'rgba(0,229,59,0.4)',
				color: new echarts.graphic.LinearGradient(
					0, 0, 0, 1,
					[{
							offset: 0,
							color: 'rgba(86,169,253,0.6)'
						}, //柱图渐变色
						{
							offset: 1,
							color: 'rgba(86,169,253,0)'
						}, //柱图渐变色
					]
				)
			},
			symbol: 'none'			
		},
		{
			name:res.names[1]['name'],
			data: res.data2,
			yAxisIndex: 1,
			type: 'line',			
			smooth:res.smooth,
			lineStyle:{
				color: "#f8eb0e" ,
			},
			areaStyle: {
				// color:'rgba(0,255,252,0.4)',
				color: new echarts.graphic.LinearGradient(
					0, 0, 0, 1,
					[{
							offset: 0,
							color: 'rgba(248,235,14,0.6)'
						}, //柱图渐变色
						{
							offset: 1,
							color: 'rgba(248,235,14,0)'
						}, //柱图渐变色
					]
				)
			},	
			symbol: 'none'
		}]
	};
	myChart4.setOption(option4);
}

function ech5(res,dom){
	var myChart5 = echarts.init(document.getElementById(dom));
	var series=[]
	series.push({
		name: res.datax,
		type: 'bar',
		barWidth :15,
		label: {
			show: true,
			position: 'top',
			color:'#3beafc'
		},
		data: res.dataxs,
		color: new echarts.graphic.LinearGradient(
			0, 0, 0, 1,
			[{
					offset: 0,
					color: '#3bf6fc'
				}, //柱图渐变色
				{
					offset: 1,
					color: '#3a5aff'
				}, //柱图渐变色
			]
		)
	})
	option5 = {
		tooltip: {
			trigger: 'item',
			formatter: '{b}: {c}',
			axisPointer: {            // 坐标轴指示器，坐标轴触发有效
				type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
			}
		},	
		grid: {
			left: '3%',
			right: '4%',
			top: '25%',
			bottom:0,
			containLabel: true
		},
		yAxis: {
			type: 'value',
			nameTextStyle:{
				color:'#657ca8',
				fontSize:14
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#2174c0',
				},
		　　},
			axisLabel: {
				interval:0,								
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					top:20,
					lineHeight:14,
					fontSize:14
				}
			},
			axisLine:{
				lineStyle:{
					color:'#222856',
					width:1,   //这里是坐标轴的宽度,可以去掉
					fontSize:14
				}
			}
		},
		xAxis: {
			type: 'category',
			data:res.datax,
			axisLabel: {
				interval:0,								
				textStyle:{
					color:'#657ca8',  //坐标的字体颜色
					lineHeight:14,
					fontSize:14
				},
				formatter: function (value) {
					return jieduan(value,2);	
				}
			},
			axisLine:{
				lineStyle:{
					color:'#222856',
					width:1,   //这里是坐标轴的宽度,可以去掉
					fontSize:14
				}				
			}
		},
		series: series
	};
	myChart5.setOption(option5);
}
// 单位数补0
 function change(t){
	if(t<10){
	 return "0"+t;
	}else{
	 return t;
	}
 }
 
 function ech6(res,dom){
 	var myChart6 = echarts.init(document.getElementById(dom));
 	option6 = {
 	    tooltip: {
 	        trigger: 'item',
 	        formatter: '{b}: {c} ({d}%)'
 	    },
 	    legend: {
 	        orient: 'horizontal',
 			icon:'circle',
 			bottom:"0%",
 	        right: "15%",			
 			itemWidth:10,
 			itemHeight:10,
 	        data: res.names,
 			formatter: function (value) {
 				for(var i=0;i<res.data.length;i++){
 					if(value==res.data[i]['name']){
 						return value +' '+ res.data[i]['value'] /100*100+ '%';	
 					}
 				}
 			},
 			textStyle: {
 				color:'#fff',
 				fontSize: 14,
 				padding: [0, 20, 0, 0]
 			}
 	    },
 		color:res.color,
 	    series: [
 	        {
 	            type: 'pie',
 	            radius: ['40%', '50%'],	
				minAngle:30,
				startAngle:-50,
 	            avoidLabelOverlap: false,
 	            labelLine: {
 	            	normal: {
 	            		length: 15,
 	            		length2: 30
 	            	}	 
 	            },
 	            label: {
 	            	normal: {
 	            		formatter: '{d}%\n',
 	            		fontSize:24,
 						fontFamily:'UNIDREAMLED',
 	            		padding: [0, -30],
 	            	}
 	            },
 	            data: res.data	           
 	        }
 	    ]
 	};
 	myChart6.setOption(option6);
 		
 }
 
 function ech7(res,dom){
 	var myChart7 = echarts.init(document.getElementById(dom));
 	option7 = {
 	    tooltip: {
 	        trigger: 'item',
 	        formatter: '{b}: {c} ({d}%)'
 	    },
 		title: {
 			text: res.title,
 			y:'center',
 			x:'center',
 			textStyle: {
 				fontSize:16,
 				fontWeight:'bold',
 				color: ['#fff']
 			}
 		},
 	    legend: {
 	        orient: 'horizontal',
 			icon:'circle',
 			bottom:"0%",
 	        right: "0%",
 			itemWidth:10,
 			itemHeight:10,
 			itemGap: 5,	
 	        data: res.names,
 			textStyle: {
 				color:'#fff',
 				fontSize: 14,
 				padding: [0, 20, 0, 0]
 			}
 	    },
 		color:res.color,
 	    series: [
 	        {
 	            type: 'pie',
 	            radius: ['36%', '46%'],	
 	            avoidLabelOverlap: false,
 	            labelLine: {
 	            	normal: {
 	            		length: 25,
 	            		length2: 30
 	            	}	 
 	            },
 	            label: {
 	            	normal: {
 	            		formatter: '{d}%\n',
 	            		fontSize:14,
 						//fontFamily:'UNIDREAMLED',
 	            		padding: [0, -30],
 	            	}
 	            },
 	            data: res.data	           
 	        }
 	    ]
 	};
 	myChart7.setOption(option7);
 		
 }
 
 function ech8(res,dom){
 	var myChart8 = echarts.init(document.getElementById(dom));
 	option8 = {
 		tooltip: {
 			trigger: 'axis',
 			textStyle: {
 				align:'center'
 			}				
 		},
 		color:['#1bbbff','#f8eb0e'],
 		legend: {
 			orient: 'horizontal',
 			data:res.names,
			icon:'circle',
			itemWidth:12,
			itemHeight:12,
 			textStyle: {
 				color: '#69b8ff',
 				fontSize: 12,
 				padding: [0, 0, 0, 5]
 			},
 			top: '10%',
 			itemGap: 50							
 		},
 		xAxis: {
 			type: 'category',
 			boundaryGap: false,
 			data:res.datax,
 			axisLabel: {
 				interval:0,								
 				textStyle:{
 					color:'#657ca8',  //坐标的字体颜色
 					top:20,
 					lineHeight:14,
 					fontSize:12
 				}
 			},
 			axisLine:{
 				lineStyle:{
 					color:'#222856'
 				}
 			}
 		},
 		yAxis: [{
 			type: 'value',
 			name:'数量',
 			minInterval:5,
 			nameTextStyle:{
 				color:'#657ca8',
 				fontSize:14
 			},
 			splitLine: {
 				show: false,
 				lineStyle: {
 					color: '#2174c0',
 				},
 		　　},
 			axisLine:{
 				lineStyle:{
 					color:'#222856',
 					fontSize:14,
 					width:1,   //这里是坐标轴的宽度,可以去掉
 				}
 			},
 			axisLabel: {							
 				textStyle:{
 					color:'#657ca8',  //坐标的字体颜色
 					top:20,
 					lineHeight:14,
 					fontSize:14
 				},
 				formatter: function (value) {
 					return value+res.cell;	
 				}
 			},
 		},{
 			type: 'value',
 			name:'',
 			minInterval:2,
 			nameTextStyle:{
 				color:'#657ca8',
 				fontSize:14
 			},
 			splitLine: {
 				show: false,
 				lineStyle: {
 					color: '#2174c0',
 				},
 		　　},
 			axisLine:{
 				lineStyle:{
 					color:'#222856',
 					fontSize:14,
 					width:1,   //这里是坐标轴的宽度,可以去掉
 				}
 			},
 			axisLabel: {							
 				textStyle:{
 					color:'#657ca8',  //坐标的字体颜色
 					top:20,
 					lineHeight:14,
 					fontSize:14
 				},
 				formatter: function (value) {
 					return value+res.cell;	
 				}
 			},
 		}],
 		textStyle:{
 			color:'#657ca8',
 			fontSize:14
 		},
 		grid : {
 			top:'30%',
 			left : '3%',   //组件离容器左侧的距离
 			right : '6%',
 			bottom : '0%',
 			containLabel : true     //grid 区域是否包含坐标轴的刻度标签
 		},			
 		series: [{
 			name:res.names[0]['name'],
 			data: res.data1,
 			yAxisIndex: 0,
 			type: 'line',
 			smooth:res.smooth,			
 			lineStyle:{
 				color: "#228ffe" ,
 			},
 			areaStyle: {
 				// color:'rgba(0,229,59,0.4)',
 				color: new echarts.graphic.LinearGradient(
 					0, 0, 0, 1,
 					[{
 							offset: 0,
 							color: 'rgba(86,169,253,0.6)'
 						}, //柱图渐变色
 						{
 							offset: 1,
 							color: 'rgba(86,169,253,0)'
 						}, //柱图渐变色
 					]
 				)
 			},
 			symbol: 'circle',
 			symbolSize: 6,
 			itemStyle:{
 				 normal: {
 					color: "#1bbbff"
 				}
 			}	
 		},
 		{
 			name:res.names[1]['name'],
 			data: res.data2,
 			yAxisIndex: 1,
 			type: 'line',			
 			smooth:res.smooth,
 			lineStyle:{
 				color: "#f8eb0e" ,
 			},
 			areaStyle: {
 				// color:'rgba(0,255,252,0.4)',
 				color: new echarts.graphic.LinearGradient(
 					0, 0, 0, 1,
 					[{
 							offset: 0,
 							color: 'rgba(248,235,14,0.6)'
 						}, //柱图渐变色
 						{
 							offset: 1,
 							color: 'rgba(248,235,14,0)'
 						}, //柱图渐变色
 					]
 				)
 			},	
 			symbol: 'circle',
 			symbolSize: 6,
 			itemStyle:{
 				 normal: {
 					color: "#f8eb0e"
 				}
 			}
 		}]
 	};
 	myChart8.setOption(option8);
 }
 
 function ech9(res,dom){
 	var myChart9 = echarts.init(document.getElementById(dom));
 	option9 = {
 		tooltip: {
 			trigger: 'axis',
 			textStyle: {
 				align:'center'
 			}				
 		},
 		color:['#1bbbff','#f8eb0e'],
 		legend: {
 			orient: 'horizontal',
 			data:res.names,
			icon:'circle',
			itemWidth:12,
			itemHeight:12,
 			textStyle: {
 				color: '#69b8ff',
 				fontSize: 12,
 				padding: [0, 0, 0, 5]
 			},
 			top: '5%',
 			itemGap: 50							
 		},
 		xAxis: {
 			type: 'category',
 			boundaryGap: false,
 			data:res.datax,
 			axisLabel: {
 				interval:0,								
 				textStyle:{
 					color:'#657ca8',  //坐标的字体颜色
 					top:20,
 					lineHeight:14,
 					fontSize:12
 				}
 			},
 			axisLine:{
 				lineStyle:{
 					color:'#222856'
 				}
 			}
 		},
 		yAxis: [{
 			type: 'value',
 			name:'人数',
 			minInterval:200,
 			nameTextStyle:{
 				color:'#657ca8',
 				fontSize:14
 			},
 			splitLine: {
 				show: false,
 				lineStyle: {
 					color: '#2174c0',
 				},
 		　　},
 			axisLine:{
 				lineStyle:{
 					color:'#222856',
 					fontSize:14,
 					width:1,   //这里是坐标轴的宽度,可以去掉
 				}
 			},
 			axisLabel: {							
 				textStyle:{
 					color:'#657ca8',  //坐标的字体颜色
 					top:20,
 					lineHeight:14,
 					fontSize:14
 				},
 				formatter: function (value) {
 					return value+res.cell;	
 				}
 			},
 		},{
 			type: 'value',
 			name:'车数',
 			minInterval:30,
 			nameTextStyle:{
 				color:'#657ca8',
 				fontSize:14
 			},
 			splitLine: {
 				show: false,
 				lineStyle: {
 					color: '#2174c0',
 				},
 		　　},
 			axisLine:{
 				lineStyle:{
 					color:'#222856',
 					fontSize:14,
 					width:1,   //这里是坐标轴的宽度,可以去掉
 				}
 			},
 			axisLabel: {							
 				textStyle:{
 					color:'#657ca8',  //坐标的字体颜色
 					top:20,
 					lineHeight:14,
 					fontSize:14
 				},
 				formatter: function (value) {
 					return value+res.cell;	
 				}
 			},
 		}],
 		textStyle:{
 			color:'#657ca8',
 			fontSize:14
 		},
 		grid : {
 			top:'25%',
 			left : '3%',   //组件离容器左侧的距离
 			right : '6%',
 			bottom : '0%',
 			containLabel : true     //grid 区域是否包含坐标轴的刻度标签
 		},			
 		series: [{
 			name:res.names[0]['name'],
 			data: res.data1,
 			yAxisIndex: 0,
 			type: 'line',
 			smooth:res.smooth,	
			lineStyle:{
				color: "#f8eb0e" ,
			},
			areaStyle: {
				// color:'rgba(0,255,252,0.4)',
				color: new echarts.graphic.LinearGradient(
					0, 0, 0, 1,
					[{
							offset: 0,
							color: 'rgba(248,235,14,0.6)'
						}, //柱图渐变色
						{
							offset: 1,
							color: 'rgba(248,235,14,0)'
						}, //柱图渐变色
					]
				)
			},	
			symbol: 'circle',
			symbolSize: 6,
			itemStyle:{
				 normal: {
					color: "#f8eb0e"
				}
			} 				
 		},
 		{
 			name:res.names[1]['name'],
 			data: res.data2,
 			yAxisIndex: 1,
 			type: 'line',			
 			smooth:res.smooth,
 			lineStyle:{
 				color: "#228ffe" ,
 			},
 			areaStyle: {
 				// color:'rgba(0,229,59,0.4)',
 				color: new echarts.graphic.LinearGradient(
 					0, 0, 0, 1,
 					[{
 							offset: 0,
 							color: 'rgba(86,169,253,0.6)'
 						}, //柱图渐变色
 						{
 							offset: 1,
 							color: 'rgba(86,169,253,0)'
 						}, //柱图渐变色
 					]
 				)
 			},
 			symbol: 'circle',
 			symbolSize: 6,
 			itemStyle:{
 				 normal: {
 					color: "#1bbbff"
 				}
 			}
 		}]
 	};
 	myChart9.setOption(option9);
 }
 
 function ech10(res,dom){
 	var myChart10 = echarts.init(document.getElementById(dom));
 	var series=[]
	res.dataxs.forEach(function(item){
		series.push({
			name: item.name,
			type: 'bar',
			barWidth :10,
			label: {
				show: true,
				position: 'top',
				color:'#3beafc'
			},
			data: item.data,
			color: item.color
		})
	})
 	
 	option10 = {
 		tooltip: {
 			trigger: 'axis',
 			//formatter: '{b}: {c}',
 			axisPointer: {            // 坐标轴指示器，坐标轴触发有效
 				type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
 			}
 		},	
		legend: {
			orient: 'horizontal',
			data:res.names,
			icon:'circle',
			itemWidth:12,
			itemHeight:12,
			textStyle: {
				color: '#69b8ff',
				fontSize: 12,
				padding: [0, 0, 0, 5]
			},
			top: '5%',
			itemGap: 50							
		},
 		grid: {
 			left: '3%',
 			right: '4%',
 			top: '20%',
 			bottom:0,
 			containLabel: true
 		},
 		yAxis: {
 			type: 'value',
 			nameTextStyle:{
 				color:'#657ca8',
 				fontSize:14
 			},
 			splitLine: {
 				show: false,
 				lineStyle: {
 					color: '#2174c0',
 				},
 		　　},
 			axisLabel: {
 				interval:0,								
 				textStyle:{
 					color:'#657ca8',  //坐标的字体颜色
 					top:20,
 					lineHeight:14,
 					fontSize:14
 				}
 			},
 			axisLine:{
 				lineStyle:{
 					color:'#222856',
 					width:1,   //这里是坐标轴的宽度,可以去掉
 					fontSize:14
 				}
 			}
 		},
 		xAxis: {
 			type: 'category',
 			data:res.datax,
 			axisLabel: {
 				interval:0,								
 				textStyle:{
 					color:'#657ca8',  //坐标的字体颜色
 					lineHeight:14,
 					fontSize:14
 				} 				
 			},
 			axisLine:{
 				lineStyle:{
 					color:'#222856',
 					width:1,   //这里是坐标轴的宽度,可以去掉
 					fontSize:14
 				}				
 			}
 		},
 		series: series
 	};
 	myChart10.setOption(option10);
 }
 
 // 当前时间
function formDate(){
	setInterval(function(){
		var d=new Date();
		var year=d.getFullYear();
		var month= change(d.getMonth()+1);
		var day= change(d.getDate());
		var hour= change(d.getHours());
		var minute= change(d.getMinutes());
		var second= change(d.getSeconds());
		var time=year+'-'+month+'-'+day+' '+hour+':'+minute+':'+second;
		var weekarr = ["日", "一", "二", "三", "四", "五", "六"]; 
		var key=d.getDay()
		document.getElementById('riqi').innerHTML=year+' - '+month+' - '+day+  '&nbsp;&nbsp;'+ hour +' : '+minute
		document.getElementById('week').innerHTML='星期'+weekarr[key]
	},1000)			
}

function jieduan(params,len){
	var newParamsName = "";// 最终拼接成的字符串
	var paramsNameNumber = params.length;// 实际标签的个数
	var provideNumber =len;// 每行能显示的字的个数
	var rowNumber = Math.ceil(paramsNameNumber / provideNumber);// 换行的话，需要显示几行，向上取整
	if (paramsNameNumber > provideNumber) {
		/** 循环每一行,p表示行 */
		for (var p = 0; p < rowNumber; p++) {
			var tempStr = "";// 表示每一次截取的字符串
			var start = p * provideNumber;// 开始截取的位置
			var end = start + provideNumber;// 结束截取的位置
			// 此处特殊处理最后一行的索引值
			if (p == rowNumber - 1) {
				// 最后一次不换行
				tempStr = params.substring(start, paramsNameNumber);
			} else {
				// 每一次拼接字符串并换行
				tempStr = params.substring(start, end) + "\n";
			}
			newParamsName += tempStr;// 最终拼成的字符串
		}
	} else {
		// 将旧标签的值赋给新标签
		newParamsName = params;
	}
	//将最终的字符串返回
	return newParamsName
}
// 向上滚动函数
function topScroll(enType,steep) { //滚动效果函数
  var noticeListH = $(enType+" li").height(), //获取滚动的li的高度
	noticeH = $(enType).parent().height(), //获取展示区域的高度
	noticeHListNum = Math.ceil(noticeH / noticeListH), //获取展示区域一共可以展示多少条数据,这里是因为布局的原因才*2的如果一行只有一个不需要*2
	listNum = $(enType+" li").length;
  if(listNum > noticeHListNum) {
	$(enType).animate({
	  'marginTop':-noticeListH+'px'
	},steep,'swing',function() { //当动画结束直接回调下面的函数
	  $(enType+' li:first').appendTo($(enType));
	  $(enType).css({'marginTop':'0'+'px'});
	});
  }
}